local AS = unpack(AddOnSkins)

local function DisableTexture(self, texture)
	if (string.sub(texture, 1, 9) == "Interface" or string.sub(texture, 1, 9) == "INTERFACE") then
		self:SetTexture("")
	end
end

function AS:Blizzard_DraenorAbilityButton()
	DraenorZoneAbilityFrame.SpellButton:SetNormalTexture('')
	AS:SetTemplate(DraenorZoneAbilityFrame.SpellButton)
	AS:StyleButton(DraenorZoneAbilityFrame.SpellButton)
	AS:SkinTexture(DraenorZoneAbilityFrame.SpellButton.Icon)
	DraenorZoneAbilityFrame.SpellButton.Icon:SetDrawLayer('ARTWORK')
	DraenorZoneAbilityFrame.SpellButton.Icon:SetInside()
	DraenorZoneAbilityFrame.SpellButton.Cooldown:SetInside()
	DraenorZoneAbilityFrame.SpellButton.Cooldown:SetSwipeColor(0, 0, 0, 1)
	DraenorZoneAbilityFrame.SpellButton.Cooldown:SetDrawBling(false)
	hooksecurefunc(DraenorZoneAbilityFrame.SpellButton.Style, 'SetTexture', DisableTexture)
end

AS:RegisterSkin('Blizzard_DraenorAbilityButton', AS.Blizzard_DraenorAbilityButton)

function AS:Blizzard_ExtraActionButton()
	ExtraActionButton1:SetNormalTexture('')
	AS:SetTemplate(ExtraActionButton1)
	AS:StyleButton(ExtraActionButton1)
	AS:SkinTexture(ExtraActionButton1.icon)
	ExtraActionButton1.icon:SetDrawLayer('ARTWORK')
	ExtraActionButton1.icon:SetInside()
	hooksecurefunc(ExtraActionButton1.style, 'SetTexture', DisableTexture)
end

AS:RegisterSkin('Blizzard_ExtraActionButton', AS.Blizzard_ExtraActionButton)